package github.flandre.examplemod.core.init;

import github.flandre.examplemod.common.enchantment.ExampleEnchantment;
import github.flandre.examplemod.examplemod;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.potion.EffectInstance;
import net.minecraft.potion.Potion;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

import javax.swing.text.Position;

public class PotionInit {
    public static final DeferredRegister<Potion> POTION_TYPES = DeferredRegister.create(ForgeRegistries.POTION_TYPES, examplemod.MODID);

    public static final RegistryObject<Potion> EXAMPLE_POTION =
            POTION_TYPES.register("example_potion",
                    ()-> new Potion(
                            new EffectInstance(
                                    EffectInit.EXAMPLE_EFFECT.get(),
                                    9800)//时长
                            //可以传递多个药水效果
                    ));

}
